﻿<UserControl x:Class="OnlineVideos.DownloadbleShowList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <ListBox x:Name="lbxdownloading" Grid.Row="0"  Width="470"  Foreground="White">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid Background="Transparent" Margin="0,0,0,30">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="380"/>
                            <ColumnDefinition Width="50"/>
                        </Grid.ColumnDefinitions>
                        <Grid Grid.Column="0">

                            <StackPanel Orientation="Vertical">
                                <TextBlock Text="{Binding Title}"  Foreground="{StaticResource PhoneAccentBrush}" FontWeight="Bold"/>

                               
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Status: "/>
                                    <ProgressBar x:Name="MyProgressBar" Value="{Binding ChapterProgressPosition}"  
                                                 IsIndeterminate="False"  Width="150"  Background="Black" Foreground="Red" HorizontalAlignment="Right">
                                    </ProgressBar>

                                </StackPanel>
                               
                            </StackPanel>

                        </Grid>
                        <Grid Grid.Column="1">
                            <Image x:Name="img1" Source="{Binding RequestUri}" Width="80" Height="80"></Image>
                        </Grid>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Canvas>
            <TextBlock Text="No current downloads" Canvas.Top="200" Canvas.Left="80" FontSize="28" x:Name="tblkNoDownloads" Visibility="Collapsed"/>
        </Canvas>
    </Grid>
</UserControl>
